package com.snail.jj.androiddemos.foundationwidgets;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.snail.jj.androiddemos.R;
import com.snail.jj.androiddemos.bases.BaseActivity;

/**
 * Created by snail on 2017/4/17.
 */

public class ImageViewActivity extends BaseActivity {

    ImageView imageView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_foundation_image);
        initView();
    }

    public void initView() {
        setLeftViewVisiable(View.VISIBLE);
        imageView = (ImageView) findViewById(R.id.id_imageView_image1);
        imageView.setImageDrawable(getResources().getDrawable(R.mipmap.icon));
        imageView.setAlpha(0.4f);
    }

}
